import request from "../request/request"
//创建用户
export const UserAdddata=(data)=>{
    return request.post('/user/useradd',data)
}
//获取用户列表
export const GetUserList=()=>{
    return request.get("/user/userlist")
}
//删除用户
export const DeleteUser=(id)=>{
    return request.post("/user/userDelete",{
        data:{
            id
        }
    })
}
export const EditUser=(data)=>{
    return request.post('/user/useredit',data)
}